<?php

class UserTopicGroupsController extends AppController {

    public $uses = array('User', 'TopicGroup', 'UserTopicGroup');

    public function TopicsGroupsofUser(){
        
           $id = $this->getCurrentUserId();
           $data = $this->TopicGroup->find('list', array(
                'conditions' => array(
                    'UserTopicGroup.users_id' => $id
                )
            ));      
            return $data;
    }
}
?>
